<template>
  <div class="empty-container">
    <xyIcon type="empty" :size="iconSize"></xyIcon>
    <div class="empty-text" :style="{ fontSize: fontSize + 'px' }">
      {{ text }}
    </div>
  </div>
</template>

<script>
import xyIcon from './xyIcon.vue'
export default {
  components: {
    xyIcon,
  },
  props: {
    text: {
      type: String,
      default: '无数据',
    },
    iconSize: {
      type: Number,
      default: 50,
    },
    fontSize: {
      type: Number,
      default: 16,
    },
  },
}
</script>

<style scoped>
.empty-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  color: #999;
}

.empty-text {
  margin-top: 5px;
}
</style>
